home *** CD-ROM | disk | FTP | other *** search
- on(keyPress "<Down>"){
- CountCars = "1";
- while("5" >= CountCars)
- {
- CarNum = "/car" add CountCars;
- if((getProperty(CarNum, _X) + getProperty(CarNum, _width) / "2" < getProperty("/car5", _X) - getProperty("/car5", _width) / "2" or getProperty("/car5", _X) + getProperty("/car5", _width) / "2" < getProperty(CarNum, _X) - getProperty(CarNum, _width) / "2" or getProperty("/car5", _Y) + getProperty("/car5", _height) / "2" + "6" < getProperty(CarNum, _Y) - getProperty(CarNum, _height) / "2" or getProperty(CarNum, _Y) + getProperty(CarNum, _height) / "2" < getProperty("/car5", _Y)) and "390" >= getProperty("/car5", _Y) + "2")
- {
- set("Free" add CountCars,"1");
- }
- else
- {
- set("Free" add CountCars,"0");
- }
- CountCars += "1";
- }
- if(Free1 == "1" and Free2 == "1" and Free3 == "1" and Free4 == "1")
- {
- setProperty("/car5", _Y, getProperty("/car5", _Y) + "2");
- }
- }
-